<template>
	
	 <view class="my-search-container">
	    <!-- 使用 view 组件模拟 input 输入框的样式 -->
	    <view class="my-search-box" @click="searchBoxHandle">
	       <uni-icons type="search"></uni-icons>
	      <text class="placeholder">搜索</text>
	    </view>
	  </view>
</template>

<script>
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods:{
			searchBoxHandle(){
				this.$emit('click')
			}
		}
		
	}
</script>

<style lang="scss">
.my-search-container {
  height: 50px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  background-color: #c00000;
}
.my-search-box{
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	background-color: #ffffff;
	border-radius: 15px;
	 
}
.placeholder{
	font-size: 12px;
	margin-left: 5px;
}
</style>
